package com.group9.handinhand.service.so;

import org.apache.commons.lang.ArrayUtils;

import com.group9.handinhand.dao.model.Services;
/**
 * Class for service of Services
 *
 */
public class ServicesSO extends AbstractBaseSO {
	
	private SkillSO requiredSkill;
	
	private int requiredNumber;
	
	private int respondedAmount;
	/**
	 * converts to service model object
	 * @param ignoreProperties
	 * @return
	 */
	public Services convertToModelObject(String... ignoreProperties) {
		Services service = (Services) convert(new Services(), (String[]) ArrayUtils.addAll(ignoreProperties, new String[]{"requiredSkill"}));
		return service;
	}

	public SkillSO getRequiredSkill() {
		return requiredSkill;
	}

	public void setRequiredSkill(SkillSO requiredSkill) {
		this.requiredSkill = requiredSkill;
	}

	public int getRequiredNumber() {
		return requiredNumber;
	}

	public void setRequiredNumber(int requiredNumber) {
		this.requiredNumber = requiredNumber;
	}

	public int getRespondedAmount() {
		return respondedAmount;
	}

	public void setRespondedAmount(int respondedAmount) {
		this.respondedAmount = respondedAmount;
	}

	@Override
	public String toString() {
		return "ServicesSO [requiredSkill=" + requiredSkill
				+ ", requiredNumber=" + requiredNumber + ", respondedAmount="
				+ respondedAmount + "]";
	}

}
